package com.wicket.okrbff.biz.service.dto.res;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffObjectPropertyDto
 * @使用场景
 */
@Data
public class BffObjectPropertyDto implements Serializable {

    /**
     * 对象属性类型关系ID:
     */
    @ApiModelProperty("对象属性类型关系ID")
    private String objectPropertyTypeId;

    /**
     * 类型ID:
     */
    @ApiModelProperty("类型ID")
    private String typeId;

    /**
     * 类型的编码:
     */
    @ApiModelProperty("类型的编码")
    private String typeCode;

    /**
     * 类型名称:
     */
    @ApiModelProperty("类型名称")
    private String typeName;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 排序:
     */
    @ApiModelProperty("排序")
    private String orderNumber;

    /**
     * 是否存档:
     */
    @ApiModelProperty("是否存档")
    private String isArchive;

    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffObjectPropertyDto that = (BffObjectPropertyDto) o;
      return  objectPropertyTypeId == that.objectPropertyTypeId&&typeId == that.typeId&&typeCode == that.typeCode&&typeName == that.typeName&&subjectLifeCycle == that.subjectLifeCycle&&orderNumber == that.orderNumber&&isArchive == that.isArchive&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), objectPropertyTypeId,typeId,typeCode,typeName,subjectLifeCycle,orderNumber,isArchive,operationInductionId,operateTime);
    }
}
